home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000212_fdc@columbia.edu_Thu Dec 6 15:08:30 EST 2001.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
50 lines
Article: 13035 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.os.linux.misc,comp.protocols.kermit.misc
Subject: Can't open("/dev/tty",O_RDWR) in RH7.1/ia64
Date: 6 Dec 2001 14:09:55 -0500
Organization: Columbia University
Lines: 34
Message-ID: <9uofq3$otq$1@watsol.cc.columbia.edu>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1007665796 10606 128.59.39.139 (6 Dec 2001 19:09:56 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 6 Dec 2001 19:09:56 GMT
Xref: newsmaster.cc.columbia.edu comp.os.linux.misc:529688 comp.protocols.kermit.misc:13035
In the following program:
extern int errno;
main() {
int fd;
errno = 0;
fd = open("/dev/tty",2);
printf("fd = %d\n",fd);
printf("errno = %d\n",errno);
}
open() returns -1 with errno = 6 ("No such device or address")
on the following platform:
uname -a:
Linux spe190 2.4.9-12smp #1 SMP Tue Oct 30 17:55:42 EST 2001 ia64 unknown
/etc/issue:
Red Hat Linux release 7.1 (Seawolf)
Kernel 2.4.9-12smp on a 4-processor ia64
Of course there is such a device or address:
ls -l /dev/tty:
crw-rw-rw- 1 root root 5, 0 Dec 5 12:28 /dev/tty
This prevents me from getting Kermit to work on this platform. I tried
simply substituing '0' as a file descriptor if open() fails, but then
subsequent calls to tcsetattr(), etc, fail with "Bad file descriptor".
Does anybody know what's up?
- Frank